package org.jeecg.modules.demo.upload.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @program: git-zhihui-backen
 * @description:
 * @author: 张浩
 * @create: 2023-06-16 21:26
 **/
@Schema(name="zy_upload对象", description="上传文件表")
public class ZyUpload {
    private static final long serialVersionUID = 1L;

    /**id*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(name = "id")
    private String id;
    /**文件访问地址*/
    @Excel(name = "文件访问地址", width = 15)
    @Schema(name = "文件访问地址")
    private String address;
    /**文件名称*/
    @Excel(name = "文件名称", width = 15)
    @Schema(name = "文件名称")
    private String name;
    /**文件大小*/
    @Excel(name = "文件大小", width = 15)
    @Schema(name = "文件大小")
    private Double size;
    /**修改人*/
    @Excel(name = "修改人", width = 15)
    @Schema(name = "修改人")
    private String person;
    /**修改时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(name = "修改时间")
    private Date updateTime;
    /**备注*/
    @Excel(name = "备注", width = 15)
    @Schema(name = "备注")
    private String remark;
    /**版本说明*/
    @Excel(name = "版本说明", width = 15)
    @Schema(name = "版本说明")
    private String version;
    /**历史版本*/
    @Excel(name = "历史版本", width = 15)
    @Schema(name = "历史版本")
    private String historyVersion;
    /**预览*/
    @Excel(name = "预览", width = 15)
    @Schema(name = "预览")
    private String preview;
    /**文件类型*/
    @Excel(name = "文件类型", width = 15)
    @Schema(name = "文件类型")
    private String type;
    /**来源*/
    @Excel(name = "来源", width = 15)
    @Schema(name = "来源")
    private String source;
    /**关联*/
    @Excel(name = "关联", width = 15)
    @Schema(name = "关联")
    private String relate;
    /**下载*/
    @Excel(name = "下载", width = 15)
    @Schema(name = "下载")
    private String download;

    /**后缀*/
    @Excel(name = "后缀", width = 15)
    @Schema(name = "后缀")
    private String form;

    public ZyUpload() {
    }

    public ZyUpload(String address, String name, Double size, String person, Date updateTime, String remark, String version, String historyVersion, String preview, String type, String source, String relate, String download, String form) {
        this.address = address;
        this.name = name;
        this.size = size;
        this.person = person;
        this.updateTime = updateTime;
        this.remark = remark;
        this.version = version;
        this.historyVersion = historyVersion;
        this.preview = preview;
        this.type = type;
        this.source = source;
        this.relate = relate;
        this.download = download;
        this.form = form;
    }
}
